package com.achievo.reportserver.config;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;



/**
 * 
 * Report Server
 * write at Jan 21, 2010
 * @author <a href="mailto:chinaoryx@gmail.com">Hyman.Zhang (Zhang Haipeng)</a>
 * @version 1.0
 * 
 *
 */
public class ReportDef implements Serializable{
	
	private String reportId;
	
	private String groupId;
	private String reportTemplateFile;
	
	
	private String reportEngine;
	
	private String datasource;
	private String reportType;
	private String isSync;
	
	
	
	private String outFileName;
	private String outFileServerPathRoot;
	
	private String fromConfigFile;
	
	
	private List<String> mailList;
	private String outFileRealPathRoot;
	private List<ReportParam> paramList = new ArrayList<ReportParam>();
	
	private Long expireTime;
	
	


	public Long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Long expireTime) {
		this.expireTime = expireTime;
	}

	public List<String> getMailList() {
		return mailList;
	}

	public void setMailList(List<String> mailList) {
		this.mailList = mailList;
	}

	public String getFromConfigFile() {
		return fromConfigFile;
	}

	public void setFromConfigFile(String fromConfigFile) {
		this.fromConfigFile = fromConfigFile;
	}

	public String getReportTemplateFile() {
		return reportTemplateFile;
	}

	public void setReportTemplateFile(String reportTemplateFile) {
		this.reportTemplateFile = reportTemplateFile;
	}

	
	
	public String getOutFileName() {
		return outFileName;
	}

	public void setOutFileName(String outFileName) {
		this.outFileName = outFileName;
	}

	public String getOutFileServerPathRoot() {
		return outFileServerPathRoot;
	}

	public void setOutFileServerPathRoot(String outFileServerPathRoot) {
		this.outFileServerPathRoot = outFileServerPathRoot;
	}

	public String getOutFileRealPathRoot() {
		return outFileRealPathRoot;
	}

	public void setOutFileRealPathRoot(String outFileRealPathRoot) {
		this.outFileRealPathRoot = outFileRealPathRoot;
	}

	
	


	public String getIsSync() {
		return isSync;
	}

	public void setIsSync(String isSync) {
		this.isSync = isSync;
	}

	
	
	

	
	
	public void addParam(ReportParam param){
		paramList.add(param);
	}
	
	public String getReportId() {
		return reportId;
	}
	public void setReportId(String reportId) {
		this.reportId = reportId;
	}
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	
	public String getReportEngine() {
		return reportEngine;
	}
	public void setReportEngine(String reportEngine) {
		this.reportEngine = reportEngine;
	}
	public String getDatasource() {
		return datasource;
	}
	public void setDatasource(String datasource) {
		this.datasource = datasource;
	}
	public String getReportType() {
		return reportType;
	}
	public void setReportType(String reportType) {
		this.reportType = reportType;
	}
	
	public List<ReportParam> getParamList() {
		return paramList;
	}
	public void setParamList(List<ReportParam> paramList) {
		this.paramList = paramList;
	}

	@Override
	public String toString() {
		return "ReportDef [datasource=" + datasource + ", fromConfigFile="
				+ fromConfigFile + ", groupId=" + groupId + ", isSync="
				+ isSync + ", mailList=" + mailList + ", outFileName="
				+ outFileName + ", outFileRealPathRoot=" + outFileRealPathRoot
				+ ", outFileServerPathRoot=" + outFileServerPathRoot
				+ ", paramList=" + paramList + ", reportEngine=" + reportEngine
				+ ", reportId=" + reportId + ", reportTemplateFile="
				+ reportTemplateFile + ", reportType=" + reportType + "]";
	}

	

	
	
	
	

}
